package com.why.service.impl;

import com.why.mapper.UserMapper;
import com.why.pojo.User;
import com.why.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @author new wei
 * @date 2022/5/16 11:17
 */
@Service
public class UserServiceImpl implements UserService {
    @Autowired
    UserMapper userMapper;

    @Override
    public User getUser(String uname) {
        return userMapper.getUser(uname);
    }

    @Override
    public void addUser(User user) {
        userMapper.addUser(user);
    }
}
